package 富婆梦.第一阶段.第八周Scoket.作业1;

/**
 * @ProjectName: java-learning
 * @Package: 富婆梦.第一阶段.第八周Scoket.作业1
 * @ClassName: Device
 * @Author: hemengjin
 * @Description: 设备类
 * @Date:2021/9/24 14:13
 * @Version: 1.0
 */
public class Device {
    long deviceID = 20000001;
    int bindStatus = 0;
    short workType = 1;
    Switch s1 = new Switch("A1", 1);
    Switch s2 = new Switch("A2", 2);
    Switch s3 = new Switch("A3", 3);
    Switch s4 = new Switch("A4", 4);

    Device() {

    }

    Device(long deviceID, int bindStatus, short workType, Switch s1, Switch s2, Switch s3, Switch s4) {
        this.deviceID = deviceID;
        this.workType = workType;
        this.bindStatus = bindStatus;
        this.s1 = s1;
        this.s2 = s2;
        this.s3 = s3;
        this.s4 = s4;
    }

    public static void main(String[] args) {
        Device device = new Device();
        System.out.println("deviceID:" + device.deviceID);
        System.out.println("bindStatus:" + device.bindStatus);
        System.out.println("workType:" + device.workType);
        System.out.println("Switch1:" + device.s1.switchName);
        System.out.println("Switch2:" + device.s2.switchName);
        System.out.println("Switch3:" + device.s3.switchName);
        System.out.println("Switch4:" + device.s4.switchName);
    }
}
